/****************************************************************************
**
** Authors: Antonio Marcio A Menezes, Emanuel Grohs.
**
** This file is part of the Qt Board Game Framework.
**
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.LGPL included in the
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/

#include "actioncommand.h"

using namespace qtbf;

public static enum COMMAND {
        SELECT, UNSELECT, FLIP, MOVE, UNDO, DRAW, /*VALIDATE, PASS*/;
}

private COMMAND command;
private List<Zone> sources;
private Zone target;
private StringBuffer msg;

private int qnt;

ActionCommand::ActionCommand(COMMAND command, List<Zone> sources, Zone target)
{
        super();
        this.command = command;
        this.sources = sources;
        this.target = target;
        msg = new StringBuffer();
}

ActionCommand::ActionCommand(COMMAND command) {
        this.command = command;
}

ActionCommand::ActionCommand(COMMAND command, Zone target, int i) {
        this.command = command;
        this.target = target;
        this.qnt = i;
}

public int getQnt() {
        return qnt;
}

public void setQnt(int qnt) {
        this.qnt = qnt;
}

public StringBuffer getMsg() {
        return msg;
}

public void appendMsg(String msg) {
        this.msg.append(msg);
}

public COMMAND getCommand() {
        return command;
}

public void setCommand(COMMAND command) {
        this.command = command;
}

public List<Zone> getSources() {
        return sources;
}

public void setSources(List<Zone> sources) {
        this.sources = sources;
}

public Zone getTarget() {
        return target;
}

public void setTarget(Zone target) {
        this.target = target;
}
